package com.fss.article.domain;

import java.sql.Timestamp;

public class Article {
    private int id;
    private String author;
    private int likes;
    private int comments;
    private String category;
    private String summary;
    private String content;
    private String coverImage;
    private String createBy;
    private Timestamp createTime;
    private String updateBy;
    private String remark;
    private String title;

    public Article() {
    }

    public Article(int id, String title, String remark, String updateBy, Timestamp createTime, String createBy, String content, String coverImage, String summary, String category, int comments, int likes, String author) {
        this.id = id;
        this.title = title;
        this.remark = remark;
        this.updateBy = updateBy;
        this.createTime = createTime;
        this.createBy = createBy;
        this.content = content;
        this.coverImage = coverImage;
        this.summary = summary;
        this.category = category;
        this.comments = comments;
        this.likes = likes;
        this.author = author;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public int getComments() {
        return comments;
    }

    public void setComments(int comments) {
        this.comments = comments;
    }

    public int getLikes() {
        return likes;
    }

    public void setLikes(int likes) {
        this.likes = likes;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", author='" + author + '\'' +
                ", likes=" + likes +
                ", comments=" + comments +
                ", category='" + category + '\'' +
                ", summary='" + summary + '\'' +
                ", content='" + content + '\'' +
                ", coverImage='" + coverImage + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", remark='" + remark + '\'' +
                ", title='" + title + '\'' +
                '}';
    }
}
